package com.hsnn.medstgmini.trading.pur.model;

/**
 * @category 退货确认列表搜索条件
 * @author 蔡春龙
 * @date 2015年7月16日
 */
public class ReturnOrder {

	private String retCode; // 退货单号
	private String lotId; // 批次号
	private String drugCode; // 药品编码
	private String drugName; // 通用名
	private String hospCode; // 医疗机构code
	private String hospName; // 医疗机构
	private String compCode; // 企业code
	private String compName; // 生产企业
	private String startDate; // 退货开始日期
	private String endDate; // 退货结束日期
	private Integer returnStatus; // 退货单状态
	private String delCompId; // 配送企业id
	private String delCompCode; // 配送企业code
	private String delCompName; // 配送企业name
	private String confirmRemark; // 拒绝退货备注
	private String retDetailId; // 退货明细id
	private String approveCode; // 批号
	private String areaId; // 地区

	public String getRetCode() {
		return retCode;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}

	public String getLotId() {
		return lotId;
	}

	public void setLotId(String lotId) {
		this.lotId = lotId;
	}

	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}

	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}

	public String getHospName() {
		return hospName;
	}

	public void setHospName(String hospName) {
		this.hospName = hospName;
	}

	public String getCompName() {
		return compName;
	}

	public void setCompName(String compName) {
		this.compName = compName;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Integer getReturnStatus() {
		return returnStatus;
	}

	public void setReturnStatus(Integer returnStatus) {
		this.returnStatus = returnStatus;
	}

	public String getDelCompId() {
		return delCompId;
	}

	public void setDelCompId(String delCompId) {
		this.delCompId = delCompId;
	}

	public String getConfirmRemark() {
		return confirmRemark;
	}

	public void setConfirmRemark(String confirmRemark) {
		this.confirmRemark = confirmRemark;
	}

	public String getRetDetailId() {
		return retDetailId;
	}

	public void setRetDetailId(String retDetailId) {
		this.retDetailId = retDetailId;
	}

	public String getDelCompCode() {
		return delCompCode;
	}

	public void setDelCompCode(String delCompCode) {
		this.delCompCode = delCompCode;
	}

	public String getHospCode() {
		return hospCode;
	}

	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}

	public String getApproveCode() {
		return approveCode;
	}

	public void setApproveCode(String approveCode) {
		this.approveCode = approveCode;
	}

	public String getDelCompName() {
		return delCompName;
	}

	public void setDelCompName(String delCompName) {
		this.delCompName = delCompName;
	}

	public String getCompCode() {
		return compCode;
	}

	public void setCompCode(String compCode) {
		this.compCode = compCode;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	@Override
	public String toString() {
		return "ReturnOrder [retCode=" + retCode + ", lotId=" + lotId
				+ ", drugCode=" + drugCode + ", drugName=" + drugName
				+ ", hospCode=" + hospCode + ", hospName=" + hospName
				+ ", compCode=" + compCode + ", compName=" + compName
				+ ", startDate=" + startDate + ", endDate=" + endDate
				+ ", returnStatus=" + returnStatus + ", delCompId=" + delCompId
				+ ", delCompCode=" + delCompCode + ", delCompName="
				+ delCompName + ", confirmRemark=" + confirmRemark
				+ ", retDetailId=" + retDetailId + ", approveCode="
				+ approveCode + ", areaId=" + areaId + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((approveCode == null) ? 0 : approveCode.hashCode());
		result = prime * result + ((areaId == null) ? 0 : areaId.hashCode());
		result = prime * result
				+ ((compCode == null) ? 0 : compCode.hashCode());
		result = prime * result
				+ ((compName == null) ? 0 : compName.hashCode());
		result = prime * result
				+ ((confirmRemark == null) ? 0 : confirmRemark.hashCode());
		result = prime * result
				+ ((delCompCode == null) ? 0 : delCompCode.hashCode());
		result = prime * result
				+ ((delCompId == null) ? 0 : delCompId.hashCode());
		result = prime * result
				+ ((delCompName == null) ? 0 : delCompName.hashCode());
		result = prime * result
				+ ((drugCode == null) ? 0 : drugCode.hashCode());
		result = prime * result
				+ ((drugName == null) ? 0 : drugName.hashCode());
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
		result = prime * result
				+ ((hospCode == null) ? 0 : hospCode.hashCode());
		result = prime * result
				+ ((hospName == null) ? 0 : hospName.hashCode());
		result = prime * result + ((lotId == null) ? 0 : lotId.hashCode());
		result = prime * result + ((retCode == null) ? 0 : retCode.hashCode());
		result = prime * result
				+ ((retDetailId == null) ? 0 : retDetailId.hashCode());
		result = prime * result
				+ ((returnStatus == null) ? 0 : returnStatus.hashCode());
		result = prime * result
				+ ((startDate == null) ? 0 : startDate.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReturnOrder other = (ReturnOrder) obj;
		if (approveCode == null) {
			if (other.approveCode != null)
				return false;
		} else if (!approveCode.equals(other.approveCode))
			return false;
		if (areaId == null) {
			if (other.areaId != null)
				return false;
		} else if (!areaId.equals(other.areaId))
			return false;
		if (compCode == null) {
			if (other.compCode != null)
				return false;
		} else if (!compCode.equals(other.compCode))
			return false;
		if (compName == null) {
			if (other.compName != null)
				return false;
		} else if (!compName.equals(other.compName))
			return false;
		if (confirmRemark == null) {
			if (other.confirmRemark != null)
				return false;
		} else if (!confirmRemark.equals(other.confirmRemark))
			return false;
		if (delCompCode == null) {
			if (other.delCompCode != null)
				return false;
		} else if (!delCompCode.equals(other.delCompCode))
			return false;
		if (delCompId == null) {
			if (other.delCompId != null)
				return false;
		} else if (!delCompId.equals(other.delCompId))
			return false;
		if (delCompName == null) {
			if (other.delCompName != null)
				return false;
		} else if (!delCompName.equals(other.delCompName))
			return false;
		if (drugCode == null) {
			if (other.drugCode != null)
				return false;
		} else if (!drugCode.equals(other.drugCode))
			return false;
		if (drugName == null) {
			if (other.drugName != null)
				return false;
		} else if (!drugName.equals(other.drugName))
			return false;
		if (endDate == null) {
			if (other.endDate != null)
				return false;
		} else if (!endDate.equals(other.endDate))
			return false;
		if (hospCode == null) {
			if (other.hospCode != null)
				return false;
		} else if (!hospCode.equals(other.hospCode))
			return false;
		if (hospName == null) {
			if (other.hospName != null)
				return false;
		} else if (!hospName.equals(other.hospName))
			return false;
		if (lotId == null) {
			if (other.lotId != null)
				return false;
		} else if (!lotId.equals(other.lotId))
			return false;
		if (retCode == null) {
			if (other.retCode != null)
				return false;
		} else if (!retCode.equals(other.retCode))
			return false;
		if (retDetailId == null) {
			if (other.retDetailId != null)
				return false;
		} else if (!retDetailId.equals(other.retDetailId))
			return false;
		if (returnStatus == null) {
			if (other.returnStatus != null)
				return false;
		} else if (!returnStatus.equals(other.returnStatus))
			return false;
		if (startDate == null) {
			if (other.startDate != null)
				return false;
		} else if (!startDate.equals(other.startDate))
			return false;
		return true;
	}

}
